package com.example.blog.pojo;

import com.sun.istack.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import java.util.ArrayList;
import java.util.List;

/**
 * name: 东北宋小宝
 * date: 2020/8/13
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Type {
    private Long id;
    @NotEmpty(message = "名字不能为空")
    private String name;
    private List<Blog> blogs = new ArrayList<>();
}
